package com.zx.service.shop;

import com.zx.dto.request.goods.GoodsRequestDto;
import com.zx.dto.request.shop.CartRequestDto;
import com.zx.dto.response.goods.GoodsListDtoResult;
import com.zx.dto.response.shop.ShoppingCartDto;
import com.zx.model.shop.ShoppingCart;
import org.apache.ibatis.annotations.Param;

import javax.servlet.http.Cookie;
import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
 * @author sunkai
 * @date 2022/8/3 0003 15:07
 * @mood zhou xun
 */
public interface ShoppingCartService {

    int insertCart( ShoppingCart shoppingCart, HttpServletRequest request);

    int queryCart(String userToken);

    GoodsListDtoResult queryUserCart(HttpServletRequest request, GoodsRequestDto goodsRequestDto);

    Boolean addCart( CartRequestDto cartRequestDto,HttpServletRequest request);

    Boolean deleteCartGood(List<Integer> id);

}
